package admin.entity;

import admin.core.annotation.Query;
import admin.core.annotation.TableField;
import admin.core.annotation.TableId;
import admin.core.annotation.TableName;
import admin.core.enums.IdType;
import admin.core.enums.QueryType;

@TableName(label = "球员", value = "player_info")
public class Player {

    @TableId(label = "球衣",value = "jersey_number", type = IdType.INPUT)
    @Query(QueryType.EQUALS)
    private String id;

    @TableField(label = "姓名",value = "player_name")
    @Query(QueryType.LIKE)
    private String name;

    @TableField(label = "球队",value = "team_name")
    private String team;

    @TableField(label = "位置")
    private String position;

    @TableField(label = "身高")
    private String height;

    @TableField(label = "体重")
    private String weight;

    public Player() {
    }

    public Player(String id, String name, String team, String position, String height, String weight) {
        this.id = id;
        this.name = name;
        this.team = team;
        this.position = position;
        this.height = height;
        this.weight = weight;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTeam() {
        return team;
    }

    public void setTeam(String team) {
        this.team = team;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }
}
